package com.zxc.demo3.proxy;

import com.zxc.demo3.FangDong;
import com.zxc.demo3.impl.FangDongImpl;


/**
  * @author: zxc
  * @return:
  * @time:  2021/5/17 14:47
  * @description: 静态代理 写类来实现或者继承目标的业务方法,以此保持业务功能的一致,再加上额外辅助功能代码
  */
public class ProxyZuFang implements FangDong {
    @Override
public void zufang() {
        FangDongImpl fd = new FangDongImpl();
        //辅助功能
        System.out.println("发布房源");
        System.out.println("带人看房");
        fd.zufang();
        }
}
